<?php
	// basic security, ensure that this file has been included by a legitimate user.
	if(!isset(&$nohax)) { die('HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAX!'); }

	function parseconf ($conf) {
		// seems like we're just using INI for this, which luckily PHP has a built in function for :D
		foreach(print_r(parse_ini_file($conf, true)) as $type => $value) {
			$type = $value;
		}
		if(!isset($database) or !isset($main)) {
			error('Configuration Error', 'Please edit ensure that the configuration file contains the main and database sections');
		}
		return 1;
	}
?>